JavaScript Examples

Index for the PageSpinner JavaScript Examples

Please note that JavaScript is currently only available in Netscape Navigator 2.0 and MS Internet Explorer 3.0, or higher.

Do not assume that all in your audience are using a JavaScript enabled browser.


The HTML files for these examples can be found inside the folder named JavaScript located in the PageSpinner Examples folder. Use Finder to open a file with PageSpinner to be able to view and edit the source.

Some of the files are Stationery files that will open as untitled documents in PageSpinner.

Alert Stationery
See how you can use Alert Dialogs

Scrolling Text Stationery
The famous scrolling text in the status bar.

Random Link Example
Provide your own box of chocolate.

Todays Link Example
Take the reader to the page of the day.

Dynamic Document Stationery
Learn how to make your documents dynamic.

Dynamic News
Let this JavaScript manage the NEW! icons in your pages. Perfect for the busy webmaster.

Cookie Example
Cookies are good for storing small pieces of information on the reader's hard disk. Here is a page that remembers a reader's last visit.

Timer Example
Display a timer on your page, and more...

Redirect JavaScript browsers
Be compatible with all browsers! This single line of JavaScript redirects JavaScript browsers to another page - and display a notice or alternate pages for browsers without JavaScript.

Remote Control Window
Open a custom window - this examples let viewers navigate a site with a simple remote control.

Popup Menu
Example of how to make a popup menu to let viewers navigate between pages.

Timed Banner
Commercial time, so put up a banner with lots of different messages.

Please note that JavaScript is a scripting language that is still undergoing development: there are some minor differences between the implementation in Netscape Navigator 2.0 and Netscape Navigator 3.0. The implementation of JavaScript in MS Internet Explorer 3.0 also differs from Netscape's. Also, some the commands described in the JavaScript Authoring Guide doesn't seem to work according to the current documentation (e.g., the document.clear() function).

This may cause problems for Web authors that would like to use JavaScript and support all platforms available on the Internet. Anyway, JavaScript is the scripting language for HTML that - in some form or another - is supported on most major systems.


- More Examples Contents -